package com.tracy.lifeproject.constant;


/**
 * ***********************************************************
 * author: tracy
 * time: 2016/7/19 22:12
 * name:
 * overview:
 * usage: 接口的URL
 * *************************************************************
 */
public class UrlString {
    //主界面最上方轮播图的Url
    public static final String URL_BANNER = "http://api.mglife.me/v2/banners";
    //主界面中间广告栏的Url
    public static final String URL_SECONDBANNER = "http://api.mglife.me/v2/secondary_banners";
    //主界面下方放入列表的Url
    public static final String URL_POSTS = "http://api.mglife.me/v2/posts?limit=20&offset=0";
    //主界面ToolBar上面搜索按钮点击后的跳转界面，热词的Url
    public static final String URL_HOTWORDS = "http://api.mglife.me/v2/search/hot_words";

    //搜索界面 攻略的URl
    public static final String URL_DISCOVERY_STRATEGY = "http://api.mglife.me/v2/collections?limit=20&offset=0";
    //专区的Url
    public static final String URL_SPECIAL = "http://api.mglife.me/v2/channel_groups/all";

    //商品fragment中的---------------------------------------------
    public static final String URL_GOODS = " http://api.mglife.me/v2/item_categories/tree";
    public static final String URL_GOODS_ITEM = " http://api.mglife.me/v2/item_subcategories/%d/items?limit=20&offset=0";
    public static final String URL_GOODS_ITEM_IMG = "http://api.mglife.me/v2/item_categories/%d/items?limit=20&offset=0";
    public static final String URL_GOODS_BUYERRECORD = "http://api.mglife.me/v2/items/%d/relate_favorite_lists?offset=0&limit=20";
    //------------------------------------------------------------


    public static String getSummerUrl(int id) {
        return "http://api.mglife.me/v2/collections/" + id + "/posts?limit=20&offset=0";


    }

    public static String getSummerUrl2(int id) {
        return " http://api.mglife.me/v2/channels/" + id + "/items?limit=20&offset=0";
//  http://api.mglife.me/v2/channels/30/items?limit=20&offset=0

    }

    public static final String URL_WEB = "http://api.mglife.me/v2/posts_v2/";
    public static final String URL_SIMPLE = "http://api.mglife.me/v2/item_subcategories/3/items?limit=20&offset=0";

    //商品详情界面的Url
    public static String getDescriptionUrl(int id) {
        return "http://api.mglife.me/v2/items_v2/" + id;
    }


    //商品详情界面评论的Url

    public static String getCommentsUrl(int id) {
        return "http://api.mglife.me/v2/items/" + id + "/comments?limit=20&offset=0";
    }
}
